

package pacman.skills;


/**
 * This class represents pacman's upgraded Bite3
 * @author Leonardo
 */
public class Bite4 extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public Bite4(){
        this.mana = 3;
        this.hit = 6;
        this.cost = 3;
        this.tick = 4;
        this.isActive = false;
        this.spriteIndex = 0;
    }

    /**
     * Activation of skill
     * @param cost Cost of skill
     * @param active If Bite3 is active
     * @param bite3 Disables Bite3 if it's all ok
     * @return cost
     */
    public int Activate(int cost, boolean active, Bite3 bite3){
        if(cost == this.cost && active == true){
            this.isActive = true;
            bite3.isActive = false;
        }
        return this.cost;
     }

}
